package com.item.mobile;

import com.base.mobile.IMError;

public enum MEnumError implements IMError {
	ERROR(10000,"接口处理异常"),
	LOST_PARAM_ERROR(10001,"缺失必要参数"),
	USER_NOEXIST_ERROR(10002,"用户不存在"),
	UPLOAD_FAILURE_ERROR(10003,"文件上传失败"),
	LOGIN_FAILURE_ERROR(10004,"用户名或密码不正确"),
	TREEHOLE_NOT_EXISTS(10005,"帖子不存在或已被删除"),
	WELCOME_NOEXIST_ERROR(10006,"欢迎页不存在"),
	VERIFYMESSAGE_SEND_ERROR(10007,"手机验证短信发送失败"),
	VERIFYMESSAGE_NOTNEED_ERROR(10008, "该号码正在验证，未超时"),
	MOBILE_NOTINTABLE_ERROR(10009, "验证超时请重新发送验证码"),
	USER_ALREADY_EXISTS(10010, "该用户名已存在"),
	LIBRARY_LOGIN_ERROR(10011,"用户名或密码错误"), 
	LIBRARY_SEARCH_ERROR(10012,"图书馆系统维修"),
	BOOK_RENEW_ERROR(10013,"图书续借异常"),
	NOT_VERIFY_ERROR(10014,"身份未验证"),
	JIAOWU_LOGIN_ERROR(10015,"信息输入错误，请检查"),
	MATCH_TIME_OUT(10016,"匹配超时"),
	ECARD_LOGIN_ERROR(10021,"信息输入错误，请检查"),
	SIGN_LOGIN_ERROR(10022,"信息输入错误，请检查"),
	RUNTIME_ERROR(10023, "信息输入错误或学校系统更新"),
	MARKET_SOLD_ERROR(10024, "更新商品状态出错"),
	MSG_START_ERROR(10025, "发起私信会话失败"), 
	INBLACK_LIST_ERROR(10026, "消息发送失败，您已被对方列入黑名单"),
	BLACK_LIST_ERROR(10027, "消息发送失败，您已将对方列入黑名单"),
	MOBILE_VERIFY_ERROR(10028, "请先登录"),
	TICKET_RUN_OUT_ERROR(10029, "票被抢光了"),
	TICKET_ALREADY_ERROR(10030, "您已经抢到了票，届时凭手机号参与活动"),
	TICKET_TIMEOUT_ERROR(10031, "排队的人太多了，继续努力再来一次吧"),
	NIKCNAME_REPEAT_ERROR(10032, "该昵称已被使用"),
	LOTTERY_ALREADY_ERROR(10033, "您已经抽过了哦，请耐心等待结果"),
	LOTTERY_FAIL_ERROR(10034, "抽奖失败了，请再次尝试T_T"),
	LOTTERY_END_ERROR(10035, "该活动已经结束"),
	MOBILE_VERIFY_CODE_ERROR(100036, "验证码输入错误"),
	NET_CONN_ERROR(100037, "连接超时或学校系统维护"),
	LOGIN_END_ERROR(100038, "没有更多记录了"),
	LOGIN_VALID_ERROR(100039, "登录失效，请重登"),
	NJUA_ECARD_LOGIN_ERROR(100040,"请输入校园信息门户账号密码"),
	ECARD_LOST_ERROR(100041,"一卡通挂失失败"),
	FEEDBACK_INSERT_ERROR(100042,"提交失败"),
	NEWS_COMMENT_T_ERROR(100043,"新闻评论出错"),
	NO_RECOMMEND_ERROR(100044,"今日推荐不存在"),
	QUESTION_NOT_EXISTS(100045,"题目不存在或已被删除"),
	OLD_PASSWORD_ERROR(100046,"原密码错误"),
	EMAIL_EMPTY_ERROR(100047,"请先设置邮箱"),
	ESSENCE_NOT_EXISTS(100048,"精华课程不存在"),
	PASSWORD_EMPTY_ERROR(100049,"密码为空");
	
	
	/** 错误编码 */
	private int errorCode;

	/** 错误信息 */
	private String errorMsg;
	
	/**
	 * 构造函数
	 */
	private MEnumError(int errorCode, String errorMsg) {
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}

	/**
	 * @return int 错误代码
	 */
	public int getErrorCode() {
		return errorCode;
	}

	/**
	 * @return String 错误信息
	 */
	public String getErrorMsg() {
		return errorMsg;
	}
}
